﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using VXCompany.SilverlightLogging.MVVM.Models;

namespace VXCompany.SilverlightLogging.WP7.MVVM.Views
{
	public partial class LogStatusControl : UserControl
	{
		public LogStatusControl()
		{
			InitializeComponent();
		}

		private void btnGenError_Click(object sender, RoutedEventArgs e)
		{
			try
			{
				throw new Exception("Generated Exception from LogStatusControl.");
			}
			catch (Exception ex)
			{
				ExceptionPolicy.Current.HandleException(ex, ServiceProxy.ErrorLevel.Critical);
			}
		}
	}
}
